<?php

namespace app\api\controller\xykeep;

use app\common\controller\Api;
use app\common\model\Notice as noticeModel;
use think\Db;

class Notice extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    //公告
    public function index(){
        $noticeModel = new noticeModel();
        $data = $noticeModel->select();
        $this->success('',$data);
    }

    public function detail()
    {
        $param = $this->request->param();
        $noticeModel = new noticeModel();
        $data = $noticeModel->find($param['id']);
        $this->success('',$data);
    }
}